package com.example.pattern.bridge;

/**
 * 绘画实体类
 *
 * @author FM_南风
 * @date 2024/7/2 13:37
 */
public class DrawingClass extends Drawing{
    private int x, y, radius;

    public DrawingClass(int x, int y, int radius, DrawingAPI drawingAPI) {
        super(drawingAPI);
        this.x = x;
        this.y = y;
        this.radius = radius;
    }

    @Override
    public void draw() {
        drawingAPI.drawCircle(x, y, radius);
    }
}
